package com.threeti.mecool.core.domain.model.sellinto;

/** 卖进状态 */
public enum SellIntoStatus {
	/** 卖进中 */
  IN_PROGRESS,
	
	/** 卖进成功 */
	SUCCESS,
	
	/** 无法卖进 */
	CANT_BE_DONE,
	
  /** 取消 */
  CANCELED;
	
	public static SellIntoStatus valueOf(int status) {
    if (status == SellIntoStatus.IN_PROGRESS.ordinal()) {
      return SellIntoStatus.valueOf(SellIntoStatus.IN_PROGRESS.name());
    } else if (status == SellIntoStatus.SUCCESS.ordinal()) {
      return SellIntoStatus.valueOf(SellIntoStatus.SUCCESS.name());
    } else if (status == SellIntoStatus.CANT_BE_DONE.ordinal()) {
      return SellIntoStatus.valueOf(SellIntoStatus.CANT_BE_DONE.name());
    } else {
      return SellIntoStatus.valueOf(SellIntoStatus.CANCELED.name());
    }
	}
}
